.class Lcom/netease/newsreader/activity/OfflineDownPage$4;
.super Ljava/lang/Thread;
.source "OfflineDownPage.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/OfflineDownPage;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/OfflineDownPage;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/OfflineDownPage;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    .line 84
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    const/16 v8, 0x64

    const/4 v7, 0x0

    .line 86
    :goto_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$12(Lcom/netease/newsreader/activity/OfflineDownPage;)I

    move-result v3

    if-lt v3, v8, :cond_1

    .line 115
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$12(Lcom/netease/newsreader/activity/OfflineDownPage;)I

    move-result v3

    if-ne v3, v8, :cond_0

    .line 116
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$24(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/os/Handler;

    move-result-object v3

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 118
    :cond_0
    :goto_1
    return-void

    .line 87
    :cond_1
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$23(Lcom/netease/newsreader/activity/OfflineDownPage;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 88
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$24(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/os/Handler;

    move-result-object v3

    const/4 v4, 0x2

    invoke-virtual {v3, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1

    .line 91
    :cond_2
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$25(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/content/SharedPreferences;

    move-result-object v4

    const-string v5, "current_num"

    const-string v6, "0"

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$4(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V

    .line 92
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$25(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/content/SharedPreferences;

    move-result-object v4

    const-string v5, "current_col"

    const-string v6, ""

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$5(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V

    .line 93
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$25(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/content/SharedPreferences;

    move-result-object v4

    const-string v5, "current_num_in_col"

    const-string v6, "0"

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$6(Lcom/netease/newsreader/activity/OfflineDownPage;Ljava/lang/String;)V

    .line 94
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$25(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/content/SharedPreferences;

    move-result-object v4

    const-string v5, "percent"

    invoke-interface {v4, v5, v7}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v4

    invoke-static {v3, v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$7(Lcom/netease/newsreader/activity/OfflineDownPage;I)V

    .line 96
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 97
    .local v2, msg:Landroid/os/Message;
    iput v7, v2, Landroid/os/Message;->what:I

    .line 99
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 100
    .local v0, bundle:Landroid/os/Bundle;
    const-string v3, "current_num"

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$8(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 101
    const-string v3, "current_col"

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$9(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 102
    const-string v3, "current_num_in_col"

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$10(Lcom/netease/newsreader/activity/OfflineDownPage;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 103
    const-string v3, "percent"

    iget-object v4, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$12(Lcom/netease/newsreader/activity/OfflineDownPage;)I

    move-result v4

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 105
    invoke-virtual {v2, v0}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 106
    iget-object v3, p0, Lcom/netease/newsreader/activity/OfflineDownPage$4;->this$0:Lcom/netease/newsreader/activity/OfflineDownPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/OfflineDownPage;->access$24(Lcom/netease/newsreader/activity/OfflineDownPage;)Landroid/os/Handler;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 109
    const-wide/16 v3, 0x1f4

    :try_start_0
    invoke-static {v3, v4}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 110
    :catch_0
    move-exception v1

    .line 112
    .local v1, e:Ljava/lang/InterruptedException;
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto/16 :goto_0
.end method
